import pandas as pd

corpus = pd.read_csv('service_record.csv')
corpus['all'] = corpus['instrument_type'] + '/' + corpus['problem_desc'] + '/' + corpus['problem_process_method'] + '/' + corpus[
    'problem_reason']
corpus.dropna(inplace=True)
corpus = corpus.fillna('无')
corpus['all'].to_csv('上门服务语料库.txt', sep='\t', index=False)
